import time

from page import FactoryPageHome


class FactoryHandle(FactoryPageHome):
    def click_order_management(self):  # 加工厂点击订单管理
        self.get_order_management_ele().click()

    def click_search_ele1(self):
        self.get_search_ele1().click()

    def click_search_ele2(self):
        self.get_search_ele2().click()

    def click_search_ele3(self):
        time.sleep(1)
        self.get_search_ele3().click()
        time.sleep(1)

    def click_order_one(self):
        self.get_order_one_ele().click()

    def click_order_receive(self):
        self.get_order_receive_ele().click()

    def text_order_receive_success(self):
        self.get_order_receive_success_ele()

    def click_come_back(self):
        self.get_come_back_ele().click()
